
export HADOOP_HOME=$HOME/hadoop-1.0.1
#$HADOOP_HOME/bin/hadoop fs -rmr output*
#export DATA_DIR="Dkdd99"
#export DATA_NAME="kdd99"

export DATA_DIR=$1
export DATA_NAME=$2

$HADOOP_HOME/bin/hadoop jar RS.jar jbzhang.roughset.basic.EquivalenceClass -i ${DATA_DIR}/${DATA_NAME}50.data -o ${DATA_DIR}/sta_out50_${DATA_NAME} -as 2 -ae 42 > ${DATA_NAME}50.static.time

for((i=60;i<=100;i=i+10))
do
$HADOOP_HOME/bin/hadoop jar RS.jar jbzhang.roughset.basic.EquivalenceClass -i ${DATA_DIR}/${DATA_NAME}50.data -o ${DATA_DIR}/out_sta${i}_${DATA_NAME} -as 2 -ae 42 -itwo ${DATA_DIR}/add_${DATA_NAME}${i}.data > ${DATA_NAME}${i}.static.time
done

for((i=60;i<=100;i=i+10))
do
$HADOOP_HOME/bin/hadoop jar RS.jar jbzhang.roughset.basic.IncEquivalenceClass -old ${DATA_DIR}/sta_out50_${DATA_NAME}/part-r-00000 -as 2 -ae 42 -i ${DATA_DIR}/add_${DATA_NAME}${i}.data -o ${DATA_DIR}/out_inc1${i}_${DATA_NAME} > ${DATA_NAME}${i}.inc1.time
done

for((i=60;i<=100;i=i+10))
do
$HADOOP_HOME/bin/hadoop jar RS.jar jbzhang.roughset.basic.Inc2EquivalenceClass -old ${DATA_DIR}/sta_out50_${DATA_NAME}/part-r-00000 -as 2 -ae 42 -i ${DATA_DIR}/add_${DATA_NAME}${i}.data -o ${DATA_DIR}/out_inc2${i}_${DATA_NAME} > ${DATA_NAME}${i}.inc2.time
done
